import {request} from '../api.js'

export const getGoodsList = (page) => {
	return request({
		url: 'getgoods?pageindex=' + page
	})
}

export const getGoodsInfo = id => {
	return request({
		url: 'goods/getinfo/' + id
	})
}

export const getSwipersForDetail = id => {
	return request({
		url: 'getthumimages/' + id
	})
}

export const getDetailContent = id => {
	return request({
		url: 'goods/getdesc/' + id
	})
}